package com.iuie.ns.frame.exception;

/**
 * 业务层异常--针对文件下载时遇到的异常
 * @author lj
 * @createTime 2017年1月2日 下午3:11:01
 */
public class FileDownloadException extends RuntimeException{

	private static final long serialVersionUID = 4547158175272575427L;

	private String code;
	
	private String func;
	
	private Object info;

    public FileDownloadException(String func, String message, Throwable cause, boolean enableSuppression, boolean writableStackTrace) {
        super(message, cause, enableSuppression, writableStackTrace);
        this.func = func;
    }

    public FileDownloadException(String func, String message, Throwable cause) {
        super(message, cause);
        this.func = func;
    }

    public FileDownloadException(String func, String message) {
        super(message);
        this.func = func;
    }
    
    public FileDownloadException(String func, String message, String code, Object info) {
        super(message);
        this.code = code;
        this.info = info;
        this.func = func;
    }
    
    public FileDownloadException(String func, String message, String code) {
        super(message);
        this.code = code;
        this.func = func;
    }
    
    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public Object getInfo() {
        return info;
    }

    public void setInfo(Object info) {
        this.info = info;
    }
    
    public String getFunc() {
		return func;
	}
    
    public void setFunc(String func) {
		this.func = func;
	}
}
